// 学生时间组
import request from '@/router/axios'

//展示表格
export function timegroupObj(query) {
    return request({
        url: '/campus/studentScheme/page',
        method: 'get',
        params: query
    })
}

//单个分配时间方案
export function addScheduleObj(obj) {
    return request({
        url: '/campus/studentScheme',
        method: 'post',
        data: obj
    })
}

//单个清除时间方案
export function delScheduleObj(personId) {
    return request({
        url: '/campus/studentScheme/' + personId,
        method: 'delete'
    })
}

//批量清除时间方案
export function delIdsObj(ids) {
    return request({
        url: '/campus/studentScheme/clean/' + ids,
        method: 'delete',

    })
}

//批量分配时间方案
export function addBatchObj(obj) {
    return request({
        url: '/campus/studentScheme/saveBatch',
        method: 'post',
        data: obj
    })
}


//展示校门和校内时间组
export function TimeObj(query) {
    return request({
        url: '/campus/timeplan/page',
        method: 'get',
        params: query
    })
}




